package com.bdqn.ordersystem.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 工单类
 */
public class Order {

    private Integer id;
    private Integer areaId;//行政区域id
    private Integer centerId;//行政区域中心
    private String flowId;//流水单号
    private Integer createdBy;//派单人
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creationDate;//创建日期
    private String contact;//投诉联系人
    private String contactTel;//联系人号码
    private String context;//投诉大概内容
    private String longitude;//百度经度
    private String latitude;//百度纬度
    private String address;//大概地址
    private Integer status=0;//工单状态：0未接单、1已接单、2已完成 默认为未接单
    private Integer receiveBy;//接单处理人,，默认为空，未接单
    private String resume;//处理简述，现场情况
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receiveDate;//接单日期
    private String logPath;//测试数据路径
    private String areaName;//区域名称
    private String centerName;//中心名称
    private String createdName;//派单人名称
    private String receiveName;//接单人名称
    private String statusName;//状态
    public Order() {
    }

    public Order(Integer areaId, Integer centerId, String flowId, Integer createdBy, Date creationDate, String contact, String contactTel, String context, String longitude, String latitude, String address, Integer status) {
        this.areaId = areaId;
        this.centerId = centerId;
        this.flowId = flowId;
        this.createdBy = createdBy;
        this.creationDate = creationDate;
        this.contact = contact;
        this.contactTel = contactTel;
        this.context = context;
        this.longitude = longitude;
        this.latitude = latitude;
        this.address = address;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public Integer getCenterId() {
        return centerId;
    }

    public void setCenterId(Integer centerId) {
        this.centerId = centerId;
    }

    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getReceiveBy() {
        return receiveBy;
    }

    public void setReceiveBy(Integer receiveBy) {
        this.receiveBy = receiveBy;
    }

    public String getResume() {
        return resume;
    }

    public void setResume(String resume) {
        this.resume = resume;
    }

    public Date getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(Date receiveDate) {
        this.receiveDate = receiveDate;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getCenterName() {
        return centerName;
    }

    public void setCenterName(String centerName) {
        this.centerName = centerName;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }
}
